package com.lframework.xingyun.promo.service.member;

import com.lframework.starter.web.core.service.BaseMpService;
import com.lframework.starter.web.core.components.resp.PageResult;
import com.lframework.xingyun.promo.entity.MarketingMemberLevel;
import com.lframework.xingyun.promo.vo.member.QueryMarketingMemberLevelVo;

import java.util.List;

/**
 * 会员营销活动和会员等级关系表 Service
 */
public interface MarketingMemberLevelService extends BaseMpService<MarketingMemberLevel> {

    /**
     * 查询列表
     * @return
     */
    PageResult<MarketingMemberLevel> queryPage(Integer pageIndex, Integer pageSize, QueryMarketingMemberLevelVo vo);

    /**
     * 查询列表
     * @param vo
     * @return
     */
    List<MarketingMemberLevel> queryList(QueryMarketingMemberLevelVo vo);

    /**
     * 根据ID查询
     * @param id
     * @return
     */
    MarketingMemberLevel findById(String id);

    /**
     *
     * @param marketingMemberId
     * @param memberLevelIds
     * @return
     */
    void batchAdd(String marketingMemberId, List<String> memberLevelIds);

    /**
     *
     * @param marketingMemberId
     * @param memberLevelIds
     * @return
     */
    void batchUpdate(String marketingMemberId, List<String> memberLevelIds);

}

